<template>
  <div id="subpage">

    <el-col :span="24" class="warp-breadcrum">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item><b>小程序</b></el-breadcrumb-item>
        <el-breadcrumb-item>微店兑换码</el-breadcrumb-item>
      </el-breadcrumb>
    </el-col>

    <div class="content">
      <div class="xcx-head">
        <div>
          <span class="font14">关键词：</span>
          <el-input class="w251 font14" placeholder="请输入关键词" v-model="keys" clearable> </el-input>
          <el-button class="mar_L_20" type="primary" @click="search()" plain>搜索</el-button>
        </div>
      </div>
      <div class="xcx-content">
        <!--列表-->
        <el-table border :data="tableData" stripe style="width: 100%">
          <el-table-column prop="title" label="商品名"></el-table-column>
          <el-table-column prop="order_id" label="订单号"></el-table-column>
          <el-table-column prop="code" label="兑换码"></el-table-column>
          <el-table-column prop="phone" label="用户手机号"></el-table-column>
          <el-table-column prop="data" label="数据"></el-table-column>
          <el-table-column prop="is_use" label="是否兑换"></el-table-column>
        </el-table>
        <!--分页-->
        <div class="paging">
          <el-pagination class="left" @current-change="handleCurrentChange" :current-page="page" background layout="prev, pager, next" :total="count"></el-pagination>
          <span class="demonstration left">共 {{ count }} 条 每页10条</span>
        </div>
      </div>
    </div>
  </div>
</template>
<script src="../../../static/js/mini_app/wdcode.js"></script>

<style scoped>

</style>
